# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-cmake
pkgver=0_git20220126
_gitrev=5020572408a386d5d2dfac3516584f5edda7a49b
pkgrel=1
pkgdesc="CMake grammar for tree-sitter"
url="https://github.com/uyha/tree-sitter-cmake"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/uyha/tree-sitter-cmake/archive/$_gitrev/tree-sitter-cmake-$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
23ce7b172b8144c3ce267a08ceb16c2a841abec1be80e07bff6b58cbef914fab6743b6dc0b5c27cb95fb9b12f7a4a44d8e924aef9d1b3b1835f7eafb7ed52847  tree-sitter-cmake-5020572408a386d5d2dfac3516584f5edda7a49b.tar.gz
"
